#include <stdio.h>


struct Book1{
	
	int id;
	char *name;
	float price;
} book1;

//qiantao
struct Book2{

	int id;
	struct Book1 book1;//别忘了写struct
};

int main(void)
{
	book1.id=10001;
        book1.name="xiaoshuo1";
        book1.price=22.6;

	struct Book2 book2;
	book2.id=666666;
	book2.book1=book1;
	printf("%d\n",book2.id);
	printf("%d\n",book2.book1.id);
	printf("%s\n",book2.book1.name);
	printf("%.2f\n",book2.book1.price);
	
	return 0;
}
